package com.zzyy.study.annotation;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * @auther zzyy
 * @create 2024-03-19 17:28
 */
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.METHOD})
public @interface AvoidRepeatSubmit {

    /**
     * 锁定时间，单位是秒,默认2秒，也即2秒内只能有一次提交
     * @return
     */
    long lockTime() default 2;

}
